package InnerClass;

public class Exercise {
    public static void main(String[] args) {
    //1.当做实参直接传递，简洁高效
    f1(new IO() {
        @Override
        public void show() {
            System.out.println("这是一副名画..");
        }
    });

    }
public static void f1(IO io){
    io.show();
}

}

interface IO{
    void show();
}

